package cn.foolishbird.crow.enumeration;

import cn.foolishbird.crow.core.CrowEnum;
import cn.foolishbird.crow.enumeration.annotation.DefDictionary;
import cn.foolishbird.crow.enumeration.annotation.Dictionary;

/**
 * @author foolish-bird
 */
@Dictionary(value = "EditState", name = "正常/编辑")
public enum EditStateEnum implements CrowEnum {

    NORMAL(1, "正常"),
    @DefDictionary
    DISABLE(2, "编辑");

    private final Integer state;

    private final String content;

    EditStateEnum(Integer state, String content) {
        this.state = state;
        this.content = content;
    }

    @Override
    public Integer value() {
        return this.state;
    }

    @Override
    public String content() {
        return this.content;
    }

}
